<?php

namespace App\Api\Requests;

class OrderRequest extends FormRequest
{
    public function rules()
    {
        return [
            'machine_id' => [
                'required'
            ],'computing' => [
                'required'
            ]

        ];
    }
    public function attributes()
    {
        return [
            'machine_id' => '矿机id',
            'computing' => '算力',
        ];
    }

    public function messages()
    {
        return [
            'machine_id.required' => '矿机id不能为空',
            'computing.required' => '算力不能为空',
        ];
    }
}